<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
         contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp" %>
<s:action name="user!view" var="view" executeResult="false"/>
<input type="hidden" name="id" value="${view.user.id}"/>

<head>
    <title>修改密码</title>
</head>
<body>

<div id="wrapper">

    <%@ include file="/include/left.jsp" %>

    <div id="page-wrapper" class="gray-bg ">

        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>修改密码</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="${ctx}">首页</a>
                    </li>
                    <li>
                        <a>用户中心</a>
                    </li>
                    <li class="active">
                        <strong>修改密码</strong>
                    </li>
                </ol>
            </div>
        </div>

        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>
                                <small>密码包含字母数字下划线,以提高安全性.</small>
                            </h5>
                            <%--<div class="ibox-tools">--%>
                            <%--<a class="collapse-link">--%>
                            <%--<i class="fa fa-chevron-up"></i>--%>
                            <%--</a>--%>
                            <%--<a class="dropdown-toggle" data-toggle="dropdown" href="#">--%>
                            <%--<i class="fa fa-wrench"></i>--%>
                            <%--</a>--%>
                            <%--<ul class="dropdown-menu dropdown-user">--%>
                            <%--<li><a href="#">Config option 1</a>--%>
                            <%--</li>--%>
                            <%--<li><a href="#">Config option 2</a>--%>
                            <%--</li>--%>
                            <%--</ul>--%>
                            <%--<a class="close-link">--%>
                            <%--<i class="fa fa-times"></i>--%>
                            <%--</a>--%>
                            <%--</div>--%>
                        </div>
                        <div class="ibox-content">
                            <s:form id="password_form" class="form-horizontal" action="user!password.action"
                                    method="post" namespace="">
                                <input type="hidden" name="user.username" value="${authentication.username}">
                                <input type="hidden" name="redirect" value="/user/view"/>
                                <%--<div class="form-group"><label class="col-sm-2 control-label">原密码</label>--%>
                                    <%--<div class="col-sm-4"><input type="password" class="form-control"></div>--%>
                                <%--</div>--%>
                                <div class="form-group"><label class="col-sm-2 control-label">新密码</label>
                                    <div class="col-sm-4">
                                        <input type="text" class="form-control validate[required]" name="user.password"  id="password">
                                    </div>
                                </div>
                                <div class="form-group"><label class="col-sm-2 control-label">确认密码</label>
                                    <div class="col-sm-4">
                                        <input type="text" class="form-control validate[required] validate[equals[password]]" id="exampleInputPassword1">
                                    </div>
                                </div>


                                <div class="hr-line-dashed"></div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-white" type="button" onclick="javascript:history.back()">取消</button>
                                        <button class="btn btn-primary" type="submit">保存</button>
                                    </div>
                                </div>
                            </s:form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <%@ include file="/common/footer.jsp" %>
    </div>
</div>


<%@ include file="/common/scripts.jsp" %>
<%@ include file="/common/validate.jsp" %>
<%@ include file="/common/icheck.jsp" %>
<script>
    $('#password_form').validationEngine();
</script>
</body>

